#include "filtreevenement.h"
#include<QMouseEvent>

filtreEvenement::filtreEvenement(QObject *parent) :
    QObject(parent)
{
}

bool filtreEvenement::eventFilter(QObject *object, QEvent *event){

    if(event->type() == QEvent::MouseButtonPress){
        QMouseEvent *a  =  static_cast<QMouseEvent*>(event);
        int x = a->x();
        int y = a->y();

        emit zoneCliquer(x,y);
        return true;
    }
    return false;


}
